package com.todod.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2022-10-05
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.data_dictory_file")
public class DataDictoryFile {

	/** 主键 */
	@TableId("dmf_pk_id")
	private Long id;
	/** 同一数据code相同，排序号不同 */
	@TableField("dmf_code")
	private String code;
	/** 项目id */
	@TableField("dmf_xm_id")
	private Long xmId;
	/** 分类id */
	@TableField("dmf_classify_id")
	private Long classifyId;
	/** 部门id */
	@TableField("dmf_department_id")
	private Long departmentId;
	/** html数据 */
	@TableField("dmf_html_data")
	private String htmlData;
	/** 是否最新(1:是，2否) */
	@TableField("dmf_is_new")
	private Long isNew;
	/** markdown数据 */
	@TableField("dmf_markdown_data")
	private String markdownData;
	/** 详细描述 */
	@TableField("dmf_table_detail_explain")
	private String tableDetailExplain;
	/** 表名 */
	@TableField("dmf_table_name")
	private String tableName;
	/** 版本 */
	@TableField("dmf_version")
	private Integer version;
	/** 排序号 */
	@TableField("dmf_sort_num")
	private Integer sortNum;
	/** 删除标识 */
	@TableField("dmf_flag")
	private Integer flag;
	/** 创建时间 */
	@TableField("dmf_create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
	/** 创建用户id */
	@TableField("dmf_create_user_id")
	private Long createUserId;
	/** 修改时间 */
	@TableField("dmf_modify_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifyTime;
	/** 修改用户名id */
	@TableField("dmf_modify_user_id")
	private Long modifyUserId;
	/** 抽取批次号 */
	@TableField("dmf_get_batch")
	private String getBatch;
	/** 抽取标志位 */
	@TableField("dmf_get_flag")
	private String getFlag;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String createUserName; // 创建人姓名
	@TableField(exist = false)
	private String xmName;// 项目名称
	@TableField(exist = false)
	private Integer num;// 文档数量

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getXmId() {
		return xmId;
	}

	public void setXmId(Long xmId) {
		this.xmId = xmId;
	}

	public Long getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Long classifyId) {
		this.classifyId = classifyId;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public String getHtmlData() {
		return htmlData;
	}

	public void setHtmlData(String htmlData) {
		this.htmlData = htmlData;
	}

	public Long getIsNew() {
		return isNew;
	}

	public void setIsNew(Long isNew) {
		this.isNew = isNew;
	}

	public String getMarkdownData() {
		return markdownData;
	}

	public void setMarkdownData(String markdownData) {
		this.markdownData = markdownData;
	}

	public String getTableDetailExplain() {
		return tableDetailExplain;
	}

	public void setTableDetailExplain(String tableDetailExplain) {
		this.tableDetailExplain = tableDetailExplain;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public String getGetBatch() {
		return getBatch;
	}

	public void setGetBatch(String getBatch) {
		this.getBatch = getBatch;
	}

	public String getGetFlag() {
		return getFlag;
	}

	public void setGetFlag(String getFlag) {
		this.getFlag = getFlag;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public String getXmName() {
		return xmName;
	}

	public void setXmName(String xmName) {
		this.xmName = xmName;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Override
	public String toString() {
		return "DataDictoryFile [id=" + id + ", code=" + code + ", xmId=" + xmId + ", classifyId=" + classifyId
				+ ", departmentId=" + departmentId + ", htmlData=" + htmlData + ", isNew=" + isNew + ", markdownData="
				+ markdownData + ", tableDetailExplain=" + tableDetailExplain + ", tableName=" + tableName
				+ ", version=" + version + ", sortNum=" + sortNum + ", flag=" + flag + ", createTime=" + createTime
				+ ", createUserId=" + createUserId + ", modifyTime=" + modifyTime + ", modifyUserId=" + modifyUserId
				+ ", getBatch=" + getBatch + ", getFlag=" + getFlag + "]";
	}

}
